/* css reset */
* {
    box-sizing: border-box;
}

*:before,
*:after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    max-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    /*background-color: lightgrey;*/
    background: url(./backgrounds/2.jpg)  no-repeat center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/*img.background {*/
/*    position: absolute;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*}*/

/*.BackgroundArea {*/
/*    position:fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    min-height:100%;*/
/*    min-width: 100%;*/
/*    background-color: blue;*/
/*}*/

.globalHeader {
    margin: 20px;
}

@media (min-width: 500px) {
    .globalHeader{
        margin: 60px 0;
    }
}

.searchForm {
    display: flex;
}

/* 如果大于500像素不执行以下代码 */
@media (min-width: 500px) {
    .searchForm{
        max-width: 400px;
        margin-right: auto;
        margin-left: auto;
    }
}

.searchForm > input {
    width: 100%;
    margin-right: 10px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.searchForm > button {
    white-space: nowrap;
    padding: 0 28px;
    border: none;
    border-radius: 4px;
    background: #0282b9;
    color: white;
    font-size: 16px;
}

.globalMain {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.siteList {
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (min-width: 500px) {
    .siteList{
        margin-left: 0;
        margin-right: -25px;
        justify-content: flex-start;
    }

}

.siteList > li {
    margin-bottom: 10px;
}

@media (min-width: 500px) {
    .siteList > li {
        margin-bottom: 10px;
        margin-right: 25px;
    }
}

.siteList .site {
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px 0;
    position: relative;
    cursor: pointer;
}

.siteList .site > .logo {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 64px;
}

.siteList .site > .link {
    font-size: 14px;
    margin-top: 4px;
}

.siteList .site > .close {
    position: absolute;
    right: 10px;
    top: 5px;
    display: none;
    cursor: default;
}

.siteList .site:hover > .close {
    display: block;
}

.siteList .addButton {
    border: 1px solid #ddd;
    background: white;
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px 0;
}

.siteList .addButton .icon {
    width: 48px;
    height: 48px;
}

.siteList .addButton .text {
    font-size: 14px;
    margin-top: 4px;
}

.siteList .addButton .icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}
